﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="box_edit.aspx.cs" Inherits="AnyOffice.general.email.box_edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>邮件箱编辑</title>
		
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script src="/aspnet_client/core/function.js"></script>
		<script Language="JavaScript">
function CheckForm()
{
  if(document.Form1.txtBoxNo.value=="")
   { alert("邮箱序号不能为空！");
	 document.Form1.txtBoxNo.focus();
     return (false);
   }
   
   if(!checkIsInteger(document.Form1.txtBoxNo.value))
  {
     alert("邮箱序号只能为整数！"); 
     document.Form1.txtBoxNo.focus();  
     return false;
  }  
   
   if(document.Form1.txtBoxName.value=="")
   { alert("邮箱名称不能为空！");
     document.Form1.txtBoxName.focus();
     return (false);
   }
   return true;
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
        <div class="main_div">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG height="20" src="/images/edit.gif" width="22" align="absMiddle"><SPAN class="big3">
								邮件箱编辑</SPAN>
						</TD>
					</TR>
				</TABLE>
				<TABLE width="500" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
					<TR>
						<TD class="ta_bg" noWrap>序号：</TD>
						<TD class="ta_txt" noWrap>
							<asp:TextBox id="txtBoxNo" runat="server" CssClass="BigInput" Columns="6" MaxLength="4"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="ta_bg" noWrap>名称：</TD>
						<TD class="ta_txt" noWrap>
							<asp:TextBox id="txtBoxName" runat="server" CssClass="BigInput" Columns="25" MaxLength="50"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="bnt_con" noWrap align="center" colSpan="2">
						   <INPUT class="bnt01" width="60" title="确定" onClick="return CheckForm();" type="submit" value="确 定" name="button">
						   <INPUT class="bnt01" width="60" onClick="location='box.aspx'" type="button" value="返 回">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
